package com.myqf2.d10_dbutils_xml.dbutils.增删改查工具类_通过方法反射_mybase框架原理;

import com.myqf2.d10_dbutils_xml.dbutils.User;
import com.myqf2.d10_dbutils_xml.dbutils.druid连接池获取连接;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public class Test {
    public static void main(String[] args) throws SQLException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {
        String sql = "select * from user";
        Connection connection = druid连接池获取连接.getConnection();
        User user1 = new User();
        List list = CURDutils.executeQuery(user1, sql, connection);
        System.out.println(list);
    }
}
